package cc.ycws.core.service;

import cc.ycws.core.dao.VisitorsMapper;
import cc.ycws.core.domain.Visitors;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class VisitorsService {
	@Resource
	VisitorsMapper visitorsMapper;

	public List<Visitors> countC(Visitors visitors){
		return visitorsMapper.CountS(visitors);
	}
	public int insert(Visitors visitors){
		return visitorsMapper.insertSelective(visitors);
	}
	public Visitors show(int id){
		return visitorsMapper.selectByPrimaryKey(id);
	}
	public int updateByPrimaryKeySelective(Visitors visitors){
		return visitorsMapper.updateByPrimaryKeySelective(visitors);
	}
}
